import {ref} from 'vue'
import {FilterType} from '../type.d.ts'

export default function useFilter() {

  const filterType = ref<FilterType>(FilterType.ALL)

  // 筛选类型
  const selectFilter = (e: Number) => {
    filterType.value = e
  }

  return {
    filterType,
    selectFilter
  }
}